import request from '@/axios'

export const getRoleListApi = (params) => {
  return request.get({ url: '/system/role/list', params })
}

export const getRoleListNoPageApi = () => {
  return request.get({ url: '/system/role/lists' })
}

export const saveTableApi = (data: any) => {
  return request.post({ url: '/system/role/create', data })
}

export const updateTableApi = (data: any) => {
  return request.post({ url: '/system/role/edit', data })
}

export const deleteRoleApi = (id: any) => {
  return request.post({ url: '/system/role/delete', params: { id } })
}
